package com.example.demoddd.domain.userauth.model.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serial;

/**
 * 权限/菜单 实体类。
 *
 * @author lhl
 * @since 2024-06-18
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("st_permissions")
public class StPermissions implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long permissionId;

    /**
     * 权限名/菜单名
     */
    private String permissionName;

    /**
     * 权限值/菜单地址
     */
    @Id
    private String permissionVal;

    /**
     * 父级id
     */
    private Long pid;

    /**
     * 权限菜单类型,1系统权限,2菜单
     */
    private Integer permissionType;

}
